package com.uyayo.ucenter.service;

import com.uyayo.framework.common.exception.CodeMultipleException;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.ucenter.entity.PermissionInit;
import com.uyayo.ucenter.model.PermissionInitCondition;

import java.util.List;

public interface PermissionInitService {

	PermissionInit getPermissionInitById(long id);

	PageBean<PermissionInit> selectPermissionInit(PageBean<PermissionInit> pageBean, PermissionInitCondition PermissionInitCondition);

	List<PermissionInit> queryAll();

	List<PermissionInit> selectPermissionInit(PermissionInit PermissionInit);
	
	int savePermissionInit(PermissionInit PermissionInit) throws CodeMultipleException;

	int updatePermissionInit(PermissionInit PermissionInit) throws CodeMultipleException;

	int deletePermissionInitById(Long id);

	PermissionInit getPermissionInitByCode(String code);

	PermissionInit getPermissionInitByEnabled();
}
